#!/bin/bash

# get commit msg with space

declare msg
for i in $@
do
	msg+=$i" "
done
echo "directly push"
git add -A
if [ $(echo -n $msg|wc -m) -eq 0 ];then
	echo -n "input commit message : "
	read msg
fi
git commit -m "$msg"
git push
